// News
import Base from "./base";
const api = new Base();
// 新增咨询
export const addNews = (data: any) => api.post("/article", data);
// 修改咨询
export const updateNews = (data: any) =>
  api.post(`/article/${data.id}`, data);
// 查询咨询
export const getNewsList = (data: any) => api.get(`/article/page`, data);
export const getNews = (id) => api.get(`/article/${id}`);
export const delNews = (id: string) => api.delete(`/article/${id}`);
